import { Aside } from "../../component/aside";
import Head from '../../component/head'
import routes from "../../router/index";
import { Outlet } from "react-router-dom";
import style from "./index.module.scss";
let Home = () => {
  //   const ElementRouter = useRoutes(routes);
  //   let match = useRouteMatch(); // 获取当前匹配的一级路由路径
  return (
    <>
      <div className={style.homeroot}>
        <Head></Head>
        <div className={style.body}>
          <div className={style.height}>
            <Aside className={style.height}></Aside>
          </div>
          <div className={style.containerDiv}>
            <Outlet />
          </div>
       
        
        </div>
      </div>
    </>
  );
};

export { Home };
